<?xml version="1.0" encoding="UTF-8"?>
<p:beans xmlns:p="http://www.springframework.org/schema/beans" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-2.5.xsd ">
	<!-- <p:bean id="jdbcTemplate" class="org.springframework.jdbc.core.jdbcTemplate">
		<p:property name="dataSource">
			<p:ref bean="dataSource"/>
		</p:property>
	</p:bean>
	
	<p:bean id="dataSource" class="org.springframework.jndi.JndiObjectFactoryBean">
		<p:property name="jndiName">
			<p:value>java:comp/env/jdbc/myDatasource</p:value>
		</p:property>
	</p:bean> -->
	<p:bean id="dataSource" class="org.apache.commons.dbcp.BasicDataSource">
        <p:property name="driverClassName" value="com.mysql.jdbc.Driver"></p:property>
        <p:property name="url" value="jdbc:mysql://localhost:3306/test"></p:property>
        <p:property name="username" value="root"></p:property>
        <p:property name="password" value="55555"></p:property>
        <p:property name="defaultAutoCommit" value="true"></p:property>
    </p:bean>
</p:beans>
